<ul>
<?php
foreach($collections as $collection){
	echo '<li class="collection">';
	$class='';
	if($this->uri->segment(4)==$collection->id){
		$class='selected';
	}
	echo html::anchor(CONTDIR.'collection/single/'.$collection->id,$collection->title, array('class'=>$class));
	echo '</li>';
}
?>
</ul>